//
//  AppDelegate.swift
//  CXWeibo
//
//  Created by 陈旭 on 16/9/10.
//  Copyright © 2016年 陈旭. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        
        // 设置全局颜色
        UITabBar.appearance().tintColor = UIColor.orangeColor()
        UINavigationBar.appearance().tintColor = UIColor.orangeColor()
        
        return true
    }
}

/**
 自定义打印
 
 - parameter message:      要打印的内容
 - parameter file:         文件名
 - parameter functionName: 方法名（一般不用打印）
 - parameter lineNum:      行号
 */
func CXPrint<T>(message: T, file: String = __FILE__, functionName: String = __FUNCTION__, lineNum: Int = __LINE__){
    let filename = (file as NSString).lastPathComponent
    print("\(filename)(\(lineNum)):\(message)")
}
